Passed
Pull Request — master (#70)
by Mathieu
01:21
created

CreateQuoteCommandHandler   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 10
dl 0
loc 10
c 0
b 0
f 0
rs 10

1 Function

Rating   Name   Duplication   Size   Complexity  
A execute 0 3 1
1
import {CommandHandler} from '@nestjs/cqrs';
2
import {Inject} from '@nestjs/common';
3
import {CreateQuoteCommand} from './CreateQuoteCommand';
4
import {IQuoteRepository} from 'src/Domain/Billing/Repository/IQuoteRepository';
5
6
@CommandHandler(CreateQuoteCommand)
7
export class CreateQuoteCommandHandler {
8
  constructor(
9
    @Inject('IQuoteRepository')
10
    private readonly quoteRepository: IQuoteRepository
11
  ) {}
12
13
  public async execute(command: CreateQuoteCommand): Promise<string> {
14
    return '';
15
  }
16
}
17